<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>用原生js或者jquery</title>
  </head>
  <body>
    <div id="box"></div>
    <button>btn</button>

    <script src="./lib/jquery.js"></script>
    <script>
      // const box = document.querySelector("#box");
      // const btn = document.querySelector("button");

      // box.innerHTML = "hello 千锋大前端";
      // btn.onclick = () => {
      //   box.innerHTML = "123";
      // };

      $("#box").html("hello 千锋大前端");
      $("button").on("click", () => {
        $("#box").html("123");
      });
    </script>
  </body>
</html>
